﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Pfizer.China.Pass.Framework.Argument
{
    public class SQLGenerationArgument
    {

        public SQLGenerationArgument(DataTable source,List<string> updateConditionColumns,List<string> notSetCols,List<string> notInsertCols)
        {
            this._sourceTable = source;
            this._updateConditionColumns = updateConditionColumns;
            this._notInsertColumns = notInsertCols;
            this._notSetColumns = notSetCols;
        }

        private DataTable _sourceTable;
        public DataTable SourceTable
        {
            get
            {
                return _sourceTable;
            }
        }

        private List<string> _updateConditionColumns;
        public List<string> UpdateConditionColumns
        {
            get
            {
                if (_updateConditionColumns == null)
                {
                    _updateConditionColumns = new List<string>();
                }
                return _updateConditionColumns;
            }
        }

        private List<string> _notSetColumns;
        public List<string> NotSetColumns
        {
            get
            {
                if (_notSetColumns == null)
                {
                    _notSetColumns = new List<string>();
                }
                return _notSetColumns;
            }
        }

        private List<string> _notInsertColumns;
        public List<string> NotInsertColumns
        {
            get
            {
                if (_notInsertColumns == null)
                {
                    _notInsertColumns = new List<string>();
                }
                return _notInsertColumns;
            }
        }
           


    }
}
